package com.bootdo.item.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-02-02 17:38:33
 */
@Entity
@Table(name = "biz_item")
public class ItemDO implements Serializable {
    private static final long serialVersionUID = 1L;

        //
        @Id
    @GeneratedValue
        @Column(name = "id")
    private Long id;
        //类目id
        @Column(name = "item_category_id")
    private Long itemCategoryId;
        //价格
        @Column(name = "price")
    private BigDecimal price;
        //标题
        @Column(name = "title")
    private String title;
        //标题图片
        @Column(name = "pic")
    private String pic;
        //图文
        @Column(name = "content")
    private String content;
        //描叙
        @Column(name = "description")
    private String description;
        //编码
        @Column(name = "code")
    private String code;
        //创建时间
        @Column(name = "gtm_create")
    private Date gtmCreate;
        //修改时间
        @Column(name = "gtm_modified")
    private Date gtmModified;
    
        /**
    * 设置：
    */
    public void setId(Long id) {
       this.id = id;
    }

    /**
    * 获取：
    */
    public Long getId() {
            return id;
        }
        /**
    * 设置：类目id
    */
    public void setItemCategoryId(Long itemCategoryId) {
       this.itemCategoryId = itemCategoryId;
    }

    /**
    * 获取：类目id
    */
    public Long getItemCategoryId() {
            return itemCategoryId;
        }
        /**
    * 设置：价格
    */
    public void setPrice(BigDecimal price) {
       this.price = price;
    }

    /**
    * 获取：价格
    */
    public BigDecimal getPrice() {
            return price;
        }
        /**
    * 设置：标题
    */
    public void setTitle(String title) {
       this.title = title;
    }

    /**
    * 获取：标题
    */
    public String getTitle() {
            return title;
        }
        /**
    * 设置：标题图片
    */
    public void setPic(String pic) {
       this.pic = pic;
    }

    /**
    * 获取：标题图片
    */
    public String getPic() {
            return pic;
        }
        /**
    * 设置：图文
    */
    public void setContent(String content) {
       this.content = content;
    }

    /**
    * 获取：图文
    */
    public String getContent() {
            return content;
        }
        /**
    * 设置：描叙
    */
    public void setDescription(String description) {
       this.description = description;
    }

    /**
    * 获取：描叙
    */
    public String getDescription() {
            return description;
        }
        /**
    * 设置：编码
    */
    public void setCode(String code) {
       this.code = code;
    }

    /**
    * 获取：编码
    */
    public String getCode() {
            return code;
        }
        /**
    * 设置：创建时间
    */
    public void setGtmCreate(Date gtmCreate) {
       this.gtmCreate = gtmCreate;
    }

    /**
    * 获取：创建时间
    */
    public Date getGtmCreate() {
            return gtmCreate;
        }
        /**
    * 设置：修改时间
    */
    public void setGtmModified(Date gtmModified) {
       this.gtmModified = gtmModified;
    }

    /**
    * 获取：修改时间
    */
    public Date getGtmModified() {
            return gtmModified;
        }
    }
